
$(function () {
    var next = $(".next");
    var phone = $(".phone");
    next.click(function () {
        if (phone.val()==""){
            $(".toolphone").css("display","block");
            return;
        } else {
            $.ajax({
            type: "POST",
            url:"ajaxPhone",
            dataType:"text",
            data:{"phone":phone.val()},
            success:function (resp) {
                if (resp=="true") {
                    $(".toolphone2").css("display","block");
                    return;
                }else {
                    $("#form").submit();
                }
            }
        })
        }




    })
})